package chainOfResponsibility.example;

/**
 * 例子测试类: 小万要请假提薪 就要向上级申请  经理只能审批2天请假   总监能审批小于5天
 *             总经理什么都能管
 */
public class TestMethod {

    public static void main(String[] args) {
        CommonManager jinli = new CommonManager("金利");
        Majordomo zongjian = new Majordomo("钟剑");
        GeneralManager zhongjingli = new GeneralManager("钟精励");
        jinli.setSuperior(zongjian);
        zongjian.setSuperior(zhongjingli);

        Request request = new Request();
        request.setRequestType("离职");
        request.setRequestContent("小万");
        request.setNumber(2);

        jinli.requestApplication(request);

    }
}
